/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software. 
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/


package com.example.soscall.utils;

import android.content.Context;

import com.example.soscall.view.RescueView;



public class RescueViewHelper {

    private static volatile RescueViewHelper instance= null;
    private RescueView mView = null;

    private RescueViewHelper(){

    }

    public static RescueViewHelper getSingleton(){
        if(instance== null){
            synchronized (RescueViewHelper.class){
                if(instance== null){
                    instance= new RescueViewHelper();
                }
            }
        }
        return instance;
    }


    public RescueView getRescueView(Context context){
        if (mView == null){
            mView = new RescueView(context);
        }
        return mView;
    }


    public RescueView getView(){
        return  mView;
    }

    public  void  setViewNull(){
        mView = null;
    }
}
